/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgMemberCoor extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgMemberCoor";
	public static final String ALIAS_MEMBER_ID = "memberId";
	public static final String ALIAS_GPS_LONGITUDE = "gpsLongitude";
	public static final String ALIAS_GPS_LATITUDE = "gpsLatitude";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * memberId       db_column: memberId 
     */	
	
	private java.lang.Integer memberId;
    /**
     * gpsLongitude       db_column: gpsLongitude 
     */	
	
	private java.lang.Float gpsLongitude;
    /**
     * gpsLatitude       db_column: gpsLatitude 
     */	
	
	private java.lang.Float gpsLatitude;
	//columns END

	public SmgMemberCoor(){
	}

	public SmgMemberCoor(
		java.lang.Integer memberId
	){
		this.memberId = memberId;
	}

	public void setMemberId(java.lang.Integer value) {
		this.memberId = value;
	}
	
	public java.lang.Integer getMemberId() {
		return this.memberId;
	}
	public void setGpsLongitude(java.lang.Float value) {
		this.gpsLongitude = value;
	}
	
	public java.lang.Float getGpsLongitude() {
		return this.gpsLongitude;
	}
	public void setGpsLatitude(java.lang.Float value) {
		this.gpsLatitude = value;
	}
	
	public java.lang.Float getGpsLatitude() {
		return this.gpsLatitude;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("MemberId",getMemberId())
			.append("GpsLongitude",getGpsLongitude())
			.append("GpsLatitude",getGpsLatitude())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getMemberId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgMemberCoor == false) return false;
		if(this == obj) return true;
		SmgMemberCoor other = (SmgMemberCoor)obj;
		return new EqualsBuilder()
			.append(getMemberId(),other.getMemberId())
			.isEquals();
	}
}

